import fastapi_cdn_host
from api import  create_app
from config import setting


app = create_app()
# 加速访问docs
fastapi_cdn_host.patch_docs(app)


if __name__ == "__main__":
    import uvicorn
    # , loop="asyncio"
    # uvicorn.run(app, host=setting.APP_HOST,log_config='./uvicorn_config.json', port=setting.APP_PORT)
    uvicorn.run(app, host=setting.APP_HOST, log_config = None, port=setting.APP_PORT)
